package com.superteam.zzl.Des;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;

import com.superteam.zzl.activity.R;

/**
 * Created by Administrator on 2017/1/15.
 */
public class QiugActivity extends AppCompatActivity{
    private RelativeLayout relativeLayout;
    private FrameLayout ra;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.qiu);
        init();
    }

    private void init() {
      //  relativeLayout=(RelativeLayout)findViewById(R.id.qiurl);
        ra=(FrameLayout) findViewById(R.id.qiurl);
    }

    public void qiu(View view) {
        //if (relativeLayout)
        final int visibility = ra.getVisibility();
        if (visibility==View.VISIBLE){
            ra.setVisibility(View.INVISIBLE);
        }else if (visibility==View.INVISIBLE)
        ra.setVisibility(View.VISIBLE);
    }
}
